$(function() {
    $.ajax({
        url: server_url + "/rest/supply/product/supplyNum.do",
        data:{ran:Math.random()},
        success:function(data){
            console.log(data)
            $("#num").text(data.data)
        }
    });
    $("#add").click(function(){
        if(userid == null || userid == ''){
            alertSupplyLogin()
            return;
        }
        window.location.href = server_url + 'skuProductAdd.do';
    });
});